<%@page import="cn.com.entity.Doctor"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>医生主页</title>
<style type="text/css">

#zuo{
	width:20%;
	height:450px;
	float:left;}

#you{width:80%;
	height:450px;
	float:right;
	margin:10px 0px 10px 0px;
	
	}
#bottom{width:100%;
	height:10%;
clear:both;
	background-color:#0FF;}

ul{list-style-type: none;
	height: 100%;
	margin-top: 20%;
}			
a:link {
	
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #03C;
}
a:hover {
	text-decoration: none;
	color: #69C;
}
a:active {
	text-decoration: none;
}
body{
color: #03C;
}
</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	//显示隐藏医生信息
	$("#doctormsg").click(function(){
		$("#updatedoctormessage").toggle();
		});
});

</script>
</head>

<body>
<%if(session.getAttribute("doctor")!=null){ 

	Doctor d=(Doctor)session.getAttribute("doctor");
%>
<div id="main">
	<div  id="top" >
		<img alt="title" src="images/doctortitilepic.jpg" height="150px" width="100%">
	</div>
	
	<div id="middle">
		<div id="zuo">
			<ul >
				
				<li><h3 ><img src="images/lanseanniu.jpg" width="15px" height="15px" id="doctormsg">个人信息管理</h3>
				<font id="updatedoctormessage" style="display:none;"><a href="selectonedoctoraction?doctor.doctorid=<%=d.getDoctorid()%>&doctor.departmentsid=<%=d.getDepartmentsid() %>"  target="mainiframe">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;修改密码</a></font>
				</li>
				<li><h3><img src="images/lanseanniu.jpg" width="15px" height="15px" id="doctor"><a href="selregformbydoctoridaction?doctor.doctorid=<%=d.getDoctorid()%>"  target="mainiframe">用户挂号信息的管理</a></h3>
				</li>
				<li><h3><img src="images/lanseanniu.jpg" width="15px" height="15px"  id="doctor"><a href="doctorexitaction">安全退出</a></h3>
				</li>
			</ul>
		</div>
		
		<div id="you">
			<iframe frameborder="0" scrolling="yes" src="welcomedoctor.jsp" width="100%" name="mainiframe" height="100%"></iframe>
		</div>
	</div>
	
	<div id="bottom">
		<hr width="100%"/>
		<center>北京LOL有限公司<br/>www.jiuailol.com</center>
	</div>
</div>
<%} 
else{
	response.sendRedirect("doctorlogin.jsp");
	
}
%>
</body>
</html>